package com.lxiaodd.sevice;

import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lxiaodd.mapper.UserMapper;

@Service
public class UserService {
	@Autowired
	UserMapper userMapper;
	
	@Transactional(rollbackFor=Exception.class)  
	public void updateUser(HashMap<String, Object> map){
		userMapper.updateUserById(map);
	}
}
